const columns = [
  {
    title: "序号",
    dataIndex: "index",
    key: "index",
    customRender: (text, record, index) => `${index + 1}`,
    align: "center",
  },
  {
    title: "客户名称",
    dataIndex: "customerName",
    key: "customerName",
    align: "center",
    // fixed: 'left'
  },
  {
    title: "客户编号",
    dataIndex: "customerNumber",
    key: "customerNumber",
    align: "center",
  },
  {
    title: "客户类型",
    dataIndex: "customerTypeName",
    key: "customerTypeName",
    align: "center",
  },
  {
    title: "电话号码",
    dataIndex: "telephone",
    key: "telephone",
    align: "center",
  },
  {
    title: "联系人",
    key: "contacts",
    dataIndex: "contacts",
    align: "center",
  },
  {
    title: "公司地址",
    key: "companyAddress",
    dataIndex: "companyAddress",
    align: "center",
  },
  {
    title: "电子邮箱",
    key: "email",
    align: "center",
    dataIndex: "email",
  },
  {
    title: "公司电话",
    key: "companyPhone",
    align: "center",
    dataIndex: "companyPhone",
  },
  {
    width: 150,
    title: "操作",
    dataIndex: "action",
    align: "center",
    scopedSlots: { customRender: "action" },
    fixed: "right",
  },
];

const customerColumns = [
  {
    title: "客户名称",
    dataIndex: "customerName",
    key: "customerName",
    align: "center",
    // fixed: 'left'
  },
  {
    title: "客户编号",
    dataIndex: "customerNumber",
    key: "customerNumber",
    align: "center",
  },
  {
    title: "电话号码",
    dataIndex: "telephone",
    key: "telephone",
    align: "center",
  },
  {
    title: "联系人",
    key: "contacts",
    dataIndex: "contacts",
    align: "center",
  },
  {
    title: "公司地址",
    key: "companyAddress",
    dataIndex: "companyAddress",
    align: "center",
  },
  {
    title: "电子邮箱",
    key: "email",
    align: "center",
    dataIndex: "email",
  },
  {
    title: "公司电话",
    key: "companyPhone",
    align: "center",
    dataIndex: "companyPhone",
  },
];

export { columns, customerColumns };
